﻿<%@ Page Language="C#" AutoEventWireup="true" CodeFile="work_list.aspx.cs" Inherits="token_work_list" %>
<%@ Register Assembly="pager" Namespace="wbh" TagPrefix="uc" %>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html>
<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>办公自动化栏目管理系统-拓垦团队</title>
    <link href="../style/global.css" rel="stylesheet" type="text/css" />
    <link href="../style/base.css" rel="stylesheet" type="text/css" />
</head>
<body>
    <form id="form1" runat="server">
    <div id="mainFrame" style="width:713px;">
        <div class = "titleBar" style="margin-bottom:10px;">您现在的位置：办公自动化 | 拓垦团队留言板管理>> <asp:Label ID="litOP" runat="server" Text="作品管理"></asp:Label></div>
 
        <div id = "mainContent">
            <div class="aLine">
                <asp:Label ID="lbTips" runat="server" Visible="false" ForeColor="red"></asp:Label>
            </div>
            
            <asp:GridView ID="gvWorks" runat="server" Width="100%" AutoGenerateColumns="False"
                DataKeyNames="name" CssClass="listTable" OnRowCommand="gvWorks_RowCommand">
                <EmptyDataTemplate>
                    没有作品
                </EmptyDataTemplate>
                <HeaderStyle Font-Bold="True" />
                <RowStyle HorizontalAlign="Center" />
                
                <Columns>
                    <asp:TemplateField HeaderText="作品名">
                        <ItemStyle HorizontalAlign="Center" Width="80" />
                        <ItemTemplate>
                            <a href="<%# Eval("url") %>" target="_blank"><%# Eval("name") %></a>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="工具">
                        <ItemStyle HorizontalAlign="Center" Width="80" />
                        <ItemTemplate>
                            <%# Eval("tool") %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    <asp:TemplateField HeaderText="地址">
                        <ItemStyle HorizontalAlign="Center" Width="80" />
                        <ItemTemplate>
                            <%# Eval("url") %>
                        </ItemTemplate>
                    </asp:TemplateField>
                    
                    <asp:TemplateField HeaderText="操作">
                        <ItemStyle HorizontalAlign="Center" Width="80" />
                        <ItemTemplate>
                            <a href="work.aspx?id=<%# Eval("id") %>">编辑</a>   
                            <asp:LinkButton CssClass="del" ID="lbDel" runat="Server" Text="删除" CommandName="del"
                                CommandArgument='<%# Eval("id") %>' OnClientClick="return confirm('是否真的删除？');" />
                        </ItemTemplate>
                    </asp:TemplateField>
                </Columns>
            </asp:GridView>
            
            
            <div  class="pageView">
                <div class="spPager">
                    <uc:SimplePager CssGotoButton="gotobt" CssGotoPanel="goto" PageSize="8" StringFormatGotoLabelHtml="转到第{0}页"
                        StringFormatPagerButton="<span title='转到第{0}页'>{0}</span>" StringFormatCurrentPagerButton="<a class='current'>{0}</a>"
                        CssClass="pagination" InnerGroupTagBlock="<ul>{0}</ul>" InnerItemTagBlock="<li>{0}</li>"
                        ID="spPager" runat="server" OnPageIndexChanging="SimplePager1_PageIndexChanging"
                        UrlPaging="False">
                    </uc:SimplePager>
                    <div class="clear">
                    </div>
                </div>
             </div>
        </div>
    </div>
    </form>
</body>
</html>
